<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script type="module">
	
	// 串联：链式调用
	new Promise(function (resolve, reject) {
		resolve(1);
	}).then(value => {
		console.log(value);// 1
		return value + 1;
	}).then(value => {
		console.log(value);// 2
		return value + 1;
	}).then(value => {
		console.log(value);// 3
		return value + 1;
	}).then(value => {
		console.log(value);// 4
		return value + 1;
	});

</script>
</html>